<html>
	<head>
		<title>Domain</title>
		<script language="javaScript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js">
		</script>
		<script src="{{ static_url("domain.js") }}" type="text/javascript"></script>
	</head>
	
	<body>
		<h2>Domain Infomation</h2>
		<div>
			<ul id="domainlist">
			{% for entry in entries %}
			<li>
			<label>Domain:</label>
			<label class="domain">
			{{escape(entry["domain"])}}
			</label>
			<label>Description</label>
			<label class="description">
			{{escape(entry["description"]) if entry.has_key("description") else ""}}
			</label>
			<span>
				<a href='/deldomain?domain={{escape(entry["domain"])}}' class='domain' alt='{{escape(entry["domain"])}}"'>Delete</a>
			</span>
			</li>
			{% end%}
			</ul>
		</div>
		
		<h2>Add an domain</h2>
		<form id="messageform" method="post">
			<label>Domain:</label>
			<input type="text" value="" id="txtDomain" name="txtDomain" />
			<input type="text" value="" id="txtDesc" name="txtDesc" />
			<input type="submit" id="btenter" name="btenter" value="Add" />
			{{ xsrf_form_html() }}
		</form>
	</body>
</html>
